package com.zcyh.exam.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zcyh.exam.annotation.Unique;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 考题类型
 * @author timo 2021/3/31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("exam_question_type")
public class QuestionType extends BaseEntity<QuestionType>{
    @NotBlank
    @Unique
    private String name;
//    @NotNull
    private Integer num;
}
